home *** CD-ROM | disk | FTP | other *** search
- Path: grimsel.zurich.ibm.com!usenet
- From: wgk@zurich.ibm.com (Keith Whittingham)
- Newsgroups: comp.lang.c++
- Subject: Re: word vs. byte alignment option
- Date: 9 Apr 1996 16:51:55 GMT
- Organization: IBM Research, ZRH
- Message-ID: <4ke4jb$nfv@grimsel.zurich.ibm.com>
- References: <4kdq3b$lhn@sloth.swcp.com>
- Reply-To: wgk@zurich.ibm.com
- NNTP-Posting-Host: pine.zurich.ibm.com
- X-Newsreader: IBM NewsReader/2 v1.00
-
- In <4kdq3b$lhn@sloth.swcp.com>, dvines@sparton.com (Dudley Vines) writes:
- >Anybody ever have trouble with Borland C++ compiler word vs. byte
- >alignment option? When I attempt to load a word aligned array into a byte
- >aligned array, the data in the byte aligned array is off by one byte.
- >
- >The arrays come from separate modules with different alignement options
- >set.
- >
- >I thought the alignment option only affected speed or memory usage...why
- >doesn't the compiler figure out how to handle the data right?
- >
- >e-mail help, please...
- >
-
- Dud,
-
- Really, this is strange behaviour - I should mail this to Peter Seebach
- seebs@solon.com to see if he can answer it and maybe put it in his FAQ..
-
- Keith
-
-
-